# -*- coding: utf-8 -*-
"""
@Author：mengying
@file： video.py
@date：2024/2/26 9:14
@email: 652044581@qq.com
@desc: 
"""

from moviepy.editor import VideoFileClip


class VideoTransformer:
    @classmethod
    def mpeg2mp4(cls, mpeg_path, mp4_path):
        clip = VideoFileClip(mpeg_path)
        clip.write_videofile(mp4_path, codec='libx264')


if __name__ == '__main__':
    # VideoTransformer.mpeg2mp4(r"C:\Users\cqax\Desktop\02.mpeg", "./result.mp4")

    import time
    print(time.time())
